<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>let arrs=["AAA","BBB","CCC"];
        for(arr of arrs){
            console.log(arr)
        }
        for(arr in arrs){
            console.log(arr)
            console.log(arrs[arr])
        }
        let objs={
            name:"tzh",
            age:"22",
            sex:"nan"
        }
        for(const obj in objs){
            console.log(obj)
            console.log(objs.obj)
            console.log(objs[obj])
            console.log(objs['name'],objs[name])
        }
        var arr = [
      {
        'name':'tzh',
        'sex':'女'
      },{
        'name':'tzh',
        'sex':'男'
      },{
        'name':'tzh',
        'sex':'未知'
      }
    ];
    for(ar of arr){
        console.log(ar)
    }
    </script>
</body>
</html>